package com.qiaofang.housewarehouse.stub.facade;

import com.qiaofang.housewarehouse.stub.request.CityDistricRequest;
import com.qiaofang.housewarehouse.stub.request.CityRegionRequest;
import com.qiaofang.housewarehouse.stub.response.CityDistricResponse;
import com.qiaofang.housewarehouse.stub.response.CityRegionResponse;
import com.qiaofang.housewarehouse.stub.response.SaleAndRentalByCityResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "housewarehouse",url="${feign.url.housewarehouse}")
@Api(tags = "HouseCollectionCharacter", value = "查询出租出售服务接口", description = "查询出租出售服务接口")
@RequestMapping(value = {"/houseCollectionCharacter"})
public interface HouseCollectionCharacterFacade {

    @ApiOperation(value = "查询城市下出租出售情况", response = SaleAndRentalByCityResponse.class)
    @RequestMapping(value = "/querySaleAndRentalByCity", method = RequestMethod.POST)
    SaleAndRentalByCityResponse querySaleAndRentalByCity(CityDistricRequest cityDistricRequest);

}
